shader smooth_stripes
(
    float rep=4,
    color ValueA = color(1,0,0),
    color ValueB = color(0,0,1),
    point projection = 0 [[string label = "Projection"]],   matrix xform = matrix(.33333, 0, 0, -.5, 0, .33333, 0, -.33333, 0, 0, .33333, 0, 0, 0, 0, 1)  [[string label = "UV transform", int dim = 2]],
    output color Color_Out = color(0.8)
)

{
    point V  = transform(1 / xform, projection);
    float x = rep*V[0];
    float y = V[1];
    float z = V[2]; 
    
    Color_Out = mix(ValueA, ValueB, sin(x));
}